package ch6oopexerpet;

public class PetTest {
    public static void main(String[] args) {
        Pet p1 = new Dog("小黑","中华田园犬",20.0);
        p1.show();
        p1.eat();
        p1.sleep();

        System.out.println("*******************");
        Pet p2 = new Qie("天天","企鹅",15.0);
        p2.show();
        p2.eat();
        p2.sleep();
        System.out.println("*******************");
        Pet p3 = new Dog("小乐","鹦鹉",5.0);
        p3.show();
        p3.eat();
        p3.sleep();

    }

}
